# -*- coding: utf-8 -*- 
#
# Description:
#
#  Definiton
#
#
#
# Changes:
#
# 2012-01-10
# Initial Commit
#
#
# Copyright 2010-2012, WyDev Team.
# Author: Polo35 (polo35580@hotmail.fr)
#
# Licenced under Academic Free License version 3.0
# Review WyGui README & LICENSE files for further details.

nname: 0
n 0(None)[return True
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb7742fec>}
nname: 742
n 742(None)[return act
]:
	i: 599(), 741()
	o: 

nname: 741
n 741(None)[]:
	i: 584(f)
	o: 742()

nname: 599
n 599(None)[act.append(ActionItem(_('Play embedded audio'), type_='action', action=play_embedded_audio, args=[context]))
act.append(ActionItem(_('Play embedded video'), type_='action', action=play_embedded_video, args=[context]))
act.append(ActionItem(_('Play embedded image'), type_='action', action=play_embedded_image, args=[context]))
]:
	i: 584(t)
	o: 742()

nname: 584
n 584(selected_item.type in ('net',))[]:
	i: 456(), 583()
	o: 599(t), 741(f)

nname: 583
n 583(None)[]:
	i: 363(f)
	o: 584()

nname: 456
n 456(None)[act.append(TransitionsActionItem(selected_item, menu, _('Transitions')))
act.append(ActionItem(_('Left rotation'), type_='action', action=rotate_left, args=[context]))
act.append(ActionItem(_('Right rotation'), type_='action', action=rotate_right, args=[context]))
]:
	i: 363(t)
	o: 584()

nname: 363
n 363(selected_item.type in ('image',))[tmp_left = ActionItem(_('Left rotation'), type_='action', action=rotate_left, args=[context])
tmp_right = ActionItem(_('Right rotation'), type_='action', action=rotate_right, args=[context])
]:
	i: 319(), 362()
	o: 456(t), 583(f)

nname: 362
n 362(None)[]:
	i: 180(f)
	o: 363()

nname: 319
n 319(None)[act.append(RepeatVideoActionItem(name=_('Repeat'), player=menu, type_='action'))
]:
	i: 274(), 318()
	o: 363()

nname: 318
n 318(None)[]:
	i: 195(f)
	o: 319()

nname: 274
n 274(None)[act.append(PlayModeVideoActionItem(name=_('Play mode'), player=menu, type_='action'))
]:
	i: 195(t)
	o: 319()

nname: 195
n 195(selected_item['backend'] not in ('wyrecord',))[act.append(SubtitlesActionItem(selected_item, menu, _('Subtitles')))
act.append(AudioSubstreamsActionItem(selected_item, menu, _('Audio language')))
]:
	i: 180(t)
	o: 274(t), 318(f)

nname: 180
n 180(selected_item.type in ('video',))[]:
	i: 95(), 179()
	o: 195(t), 362(f)

nname: 179
n 179(None)[]:
	i: 80(f)
	o: 180()

nname: 95
n 95(None)[act.append(RepeatAudioActionItem(name=_('Repeat'), player=menu, type_='action'))
act.append(RandomModeActionItem(name=_('Random'), player=menu, type_='action'))
]:
	i: 80(t)
	o: 180()

nname: 80
n 80(selected_item.type in ('audio',))[]:
	i: 47(), 79()
	o: 95(t), 179(f)

nname: 79
n 79(None)[]:
	i: 0(f)
	o: 80()

nname: 47
n 47(None)[act.append(DisplayFormatActionItem(menu, _('Display format')))
]:
	i: 0(t)
	o: 80()

nname: 0
n 0('video' in menu_type)[menu = context['menu']
menu_type = menu.type
selected_item = context['selected']
act = []
]:
	i: 
	o: 47(t), 79(f)

nname: 742
n 742(None)[return act
]:
	i: 363()
	o: 

nname: 363
n 363(None)[tmp_left = ActionItem(_('Left rotation'), type_='action', action=rotate_left, args=[context])
tmp_right = ActionItem(_('Right rotation'), type_='action', action=rotate_right, args=[context])
if selected_item.type in ('image',):
	act.append(TransitionsActionItem(selected_item, menu, _('Transitions')))
	act.append(ActionItem(_('Left rotation'), type_='action', action=rotate_left, args=[context]))
	act.append(ActionItem(_('Right rotation'), type_='action', action=rotate_right, args=[context]))
if selected_item.type in ('net',):
	act.append(ActionItem(_('Play embedded audio'), type_='action', action=play_embedded_audio, args=[context]))
	act.append(ActionItem(_('Play embedded video'), type_='action', action=play_embedded_video, args=[context]))
	act.append(ActionItem(_('Play embedded image'), type_='action', action=play_embedded_image, args=[context]))
]:
	i: 195(), 180(f)
	o: 742()

nname: 195
n 195(None)[act.append(SubtitlesActionItem(selected_item, menu, _('Subtitles')))
act.append(AudioSubstreamsActionItem(selected_item, menu, _('Audio language')))
if selected_item['backend'] not in ('wyrecord',):
	act.append(PlayModeVideoActionItem(name=_('Play mode'), player=menu, type_='action'))
act.append(RepeatVideoActionItem(name=_('Repeat'), player=menu, type_='action'))
]:
	i: 180(t)
	o: 363()

nname: 180
n 180(selected_item.type in ('video',))[]:
	i: 0()
	o: 195(t), 363(f)

nname: 0
n 0(None)[menu = context['menu']
menu_type = menu.type
selected_item = context['selected']
act = []
if 'video' in menu_type:
	act.append(DisplayFormatActionItem(menu, _('Display format')))
if selected_item.type in ('audio',):
	act.append(RepeatAudioActionItem(name=_('Repeat'), player=menu, type_='action'))
	act.append(RandomModeActionItem(name=_('Random'), player=menu, type_='action'))
]:
	i: 
	o: 180()

nname: 363
n 363(None)[tmp_left = ActionItem(_('Left rotation'), type_='action', action=rotate_left, args=[context])
tmp_right = ActionItem(_('Right rotation'), type_='action', action=rotate_right, args=[context])
if selected_item.type in ('image',):
	act.append(TransitionsActionItem(selected_item, menu, _('Transitions')))
	act.append(ActionItem(_('Left rotation'), type_='action', action=rotate_left, args=[context]))
	act.append(ActionItem(_('Right rotation'), type_='action', action=rotate_right, args=[context]))
if selected_item.type in ('net',):
	act.append(ActionItem(_('Play embedded audio'), type_='action', action=play_embedded_audio, args=[context]))
	act.append(ActionItem(_('Play embedded video'), type_='action', action=play_embedded_video, args=[context]))
	act.append(ActionItem(_('Play embedded image'), type_='action', action=play_embedded_image, args=[context]))
return act
]:
	i: 0(f)
	o: 

nname: 0
n 0(None)[menu = context['menu']
menu_type = menu.type
selected_item = context['selected']
act = []
if 'video' in menu_type:
	act.append(DisplayFormatActionItem(menu, _('Display format')))
if selected_item.type in ('audio',):
	act.append(RepeatAudioActionItem(name=_('Repeat'), player=menu, type_='action'))
	act.append(RandomModeActionItem(name=_('Random'), player=menu, type_='action'))
if selected_item.type in ('video',):
	act.append(SubtitlesActionItem(selected_item, menu, _('Subtitles')))
	act.append(AudioSubstreamsActionItem(selected_item, menu, _('Audio language')))
	if selected_item['backend'] not in ('wyrecord',):
		act.append(PlayModeVideoActionItem(name=_('Play mode'), player=menu, type_='action'))
	act.append(RepeatVideoActionItem(name=_('Repeat'), player=menu, type_='action'))
]:
	i: 
	o: 363()

nname: 0
n 0(None)[menu = context['menu']
menu_type = menu.type
selected_item = context['selected']
act = []
if 'video' in menu_type:
	act.append(DisplayFormatActionItem(menu, _('Display format')))
if selected_item.type in ('audio',):
	act.append(RepeatAudioActionItem(name=_('Repeat'), player=menu, type_='action'))
	act.append(RandomModeActionItem(name=_('Random'), player=menu, type_='action'))
if selected_item.type in ('video',):
	act.append(SubtitlesActionItem(selected_item, menu, _('Subtitles')))
	act.append(AudioSubstreamsActionItem(selected_item, menu, _('Audio language')))
	if selected_item['backend'] not in ('wyrecord',):
		act.append(PlayModeVideoActionItem(name=_('Play mode'), player=menu, type_='action'))
	act.append(RepeatVideoActionItem(name=_('Repeat'), player=menu, type_='action'))
tmp_left = ActionItem(_('Left rotation'), type_='action', action=rotate_left, args=[context])
tmp_right = ActionItem(_('Right rotation'), type_='action', action=rotate_right, args=[context])
if selected_item.type in ('image',):
	act.append(TransitionsActionItem(selected_item, menu, _('Transitions')))
	act.append(ActionItem(_('Left rotation'), type_='action', action=rotate_left, args=[context]))
	act.append(ActionItem(_('Right rotation'), type_='action', action=rotate_right, args=[context]))
if selected_item.type in ('net',):
	act.append(ActionItem(_('Play embedded audio'), type_='action', action=play_embedded_audio, args=[context]))
	act.append(ActionItem(_('Play embedded video'), type_='action', action=play_embedded_video, args=[context]))
	act.append(ActionItem(_('Play embedded image'), type_='action', action=play_embedded_image, args=[context]))
return act
]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb77698ac>}
nname: 0
n 0(None)[from __future__ import absolute_import
name = 'Player'
position = None
image = 'hand_player'
category = 'player'
default = False
unique = True
import pygui.config as config
from pygui.actions.jobs.common import rotate_left, rotate_right
from pygui.actions.jobs.player import DisplayFormatActionItem, SubtitlesActionItem, AudioSubstreamsActionItem, TransitionsActionItem, RepeatAudioActionItem, RandomModeActionItem
from pygui.actions.jobs.player import play_embedded_audio, play_embedded_video, play_embedded_image
from pygui.actions.jobs.player import RepeatVideoActionItem, PlayModeVideoActionItem
from pygui.item.core import ActionItem
from pygui.shared import pygui_globs
def is_available(context):
	return True

def get_action_info_list(context):
	menu = context['menu']
	menu_type = menu.type
	selected_item = context['selected']
	act = []
	if 'video' in menu_type:
		act.append(DisplayFormatActionItem(menu, _('Display format')))
	if selected_item.type in ('audio',):
		act.append(RepeatAudioActionItem(name=_('Repeat'), player=menu, type_='action'))
		act.append(RandomModeActionItem(name=_('Random'), player=menu, type_='action'))
	if selected_item.type in ('video',):
		act.append(SubtitlesActionItem(selected_item, menu, _('Subtitles')))
		act.append(AudioSubstreamsActionItem(selected_item, menu, _('Audio language')))
		if selected_item['backend'] not in ('wyrecord',):
			act.append(PlayModeVideoActionItem(name=_('Play mode'), player=menu, type_='action'))
		act.append(RepeatVideoActionItem(name=_('Repeat'), player=menu, type_='action'))
	tmp_left = ActionItem(_('Left rotation'), type_='action', action=rotate_left, args=[context])
	tmp_right = ActionItem(_('Right rotation'), type_='action', action=rotate_right, args=[context])
	if selected_item.type in ('image',):
		act.append(TransitionsActionItem(selected_item, menu, _('Transitions')))
		act.append(ActionItem(_('Left rotation'), type_='action', action=rotate_left, args=[context]))
		act.append(ActionItem(_('Right rotation'), type_='action', action=rotate_right, args=[context]))
	if selected_item.type in ('net',):
		act.append(ActionItem(_('Play embedded audio'), type_='action', action=play_embedded_audio, args=[context]))
		act.append(ActionItem(_('Play embedded video'), type_='action', action=play_embedded_video, args=[context]))
		act.append(ActionItem(_('Play embedded image'), type_='action', action=play_embedded_image, args=[context]))
	return act

]:
	i: 
	o: 

self.nodes: {0: <unpyclib.structure.node instance at 0xb77423cc>}
from __future__ import absolute_import
name = 'Player'
position = None
image = 'hand_player'
category = 'player'
default = False
unique = True
import pygui.config as config
from pygui.actions.jobs.common import rotate_left, rotate_right
from pygui.actions.jobs.player import DisplayFormatActionItem, SubtitlesActionItem, AudioSubstreamsActionItem, TransitionsActionItem, RepeatAudioActionItem, RandomModeActionItem
from pygui.actions.jobs.player import play_embedded_audio, play_embedded_video, play_embedded_image
from pygui.actions.jobs.player import RepeatVideoActionItem, PlayModeVideoActionItem
from pygui.item.core import ActionItem
from pygui.shared import pygui_globs
def is_available(context):
	return True

def get_action_info_list(context):
	menu = context['menu']
	menu_type = menu.type
	selected_item = context['selected']
	act = []
	if 'video' in menu_type:
		act.append(DisplayFormatActionItem(menu, _('Display format')))
	if selected_item.type in ('audio',):
		act.append(RepeatAudioActionItem(name=_('Repeat'), player=menu, type_='action'))
		act.append(RandomModeActionItem(name=_('Random'), player=menu, type_='action'))
	if selected_item.type in ('video',):
		act.append(SubtitlesActionItem(selected_item, menu, _('Subtitles')))
		act.append(AudioSubstreamsActionItem(selected_item, menu, _('Audio language')))
		if selected_item['backend'] not in ('wyrecord',):
			act.append(PlayModeVideoActionItem(name=_('Play mode'), player=menu, type_='action'))
		act.append(RepeatVideoActionItem(name=_('Repeat'), player=menu, type_='action'))
	tmp_left = ActionItem(_('Left rotation'), type_='action', action=rotate_left, args=[context])
	tmp_right = ActionItem(_('Right rotation'), type_='action', action=rotate_right, args=[context])
	if selected_item.type in ('image',):
		act.append(TransitionsActionItem(selected_item, menu, _('Transitions')))
		act.append(ActionItem(_('Left rotation'), type_='action', action=rotate_left, args=[context]))
		act.append(ActionItem(_('Right rotation'), type_='action', action=rotate_right, args=[context]))
	if selected_item.type in ('net',):
		act.append(ActionItem(_('Play embedded audio'), type_='action', action=play_embedded_audio, args=[context]))
		act.append(ActionItem(_('Play embedded video'), type_='action', action=play_embedded_video, args=[context]))
		act.append(ActionItem(_('Play embedded image'), type_='action', action=play_embedded_image, args=[context]))
	return act

